<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div><?php include "../public_flow/flow_show_info.php";?></div>
        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">车牌号</td><td id="carid_name" class="tv colorlan"></td><td class="tt">加油卡余额(元)</td><td id="jiayufee" class="tv"></td></tr>
                <tr><td class="tt">下次保养公里数</td><td id="xiashu" class="tv"></td><td class="tt">当前里程公里数</td><td id="dangshu" class="tv"></td></tr>
                <tr><td class="tt">加油日期</td><td id="dt" class="tv"></td><td class="tt">类型</td><td id="type" class="tv"></td></tr>
                <tr><td class="tt">加油金额(元)</td><td id="money" class="tv"></td><td class="tt">加油升数</td><td id="sheng" class="tv"></td></tr>
                <tr><td class="tt">本次余额(元)</td><td class="tv" id="yufee" colspan="3"></td></tr>
                <tr><td class="tt">加油说明</td><td id="jiashuo" class="tv"></td><td class="tt">经手人</td><td id="baner" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;
    var pub_enginid;
    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_car_jia_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var carinfo = res.data.carinfo;

                if(carinfo){
                    $("#carid_name").text(carinfo.paihao).click(function () {
                        openPage('../car/show.php?id='+carinfo.id);
                    });
                }

                $("#xiashu").text(data.xiashu);
                $("#jiayufee").text(parseFormatNum(data.jiayufee));
                $("#dangshu").text(data.dangshu);
                $("#dt").html(data.dt);
                $("#sheng").text(data.sheng);
                $("#baner").text(data.baner);
                $("#type").text(data.type);
                $("#jiashuo").text(data.jiashuo);
                $("#yufee").text(parseFormatNum(data.yufee));
                $("#money").text(parseFormatNum(data.money));
                $("#explain").text(data.explain);


                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('car_jia', param_id);
    });


</script>
</body>
</html>




